<template>
  <div class="main">
    <div class="leftone">
      <div class="jdgk">
        <div class="title">景点概况</div>
        <div style="color: #fff; margin: 5px 0px">
          <el-date-picker
            v-model="value1"
            style="width: 170px"
            type="date"
            placeholder="选择日期"
          >
          </el-date-picker>
          <span style="margin: 0px 10px">至</span>
          <el-date-picker
            v-model="value1"
            style="width: 170px"
            type="date"
            placeholder="选择日期"
          >
          </el-date-picker>
        </div>
        <el-collapse class="collapseZdy" v-model="activeName" accordion>
          <el-collapse-item title="" name="1" style="height: 43px">
            <template slot="title">
              <span style="margin-left: 30px">徐闻灯塔角</span>
              <div class="jrjq">
                <img src="../../../assets/qjjk/location.png" alt="" />
              </div>
              <div class="bhd">饱和度：<span>50</span></div>
            </template>
            <div style="margin-left: 10px"></div>
          </el-collapse-item>
          <el-collapse-item title="" name="2" style="height: 43px">
            <template slot="title">
              <span style="margin-left: 30px">南极村</span>
              <div class="jrjq">
                <img src="../../../assets/qjjk/location.png" alt="" />
              </div>
              <div class="bhd">饱和度：<span>71</span></div>
            </template>
            <div style="margin-left: 10px"></div>
          </el-collapse-item>
        </el-collapse>
        <div class="ljpm">
          累计接客量:<span class="jknum">10350</span>人
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;停车位空余
          <span class="kynum">300</span>个
        </div>
      </div>

      <div class="kljc1">
        <div class="title">餐饮评分排行</div>
        <div class="table" style="margin-top: 5px">
          <div class="tableTr" style="width: 60%">店名</div>
          <div class="tableTr" style="width: 20%">热度</div>
          <div class="tableTr" style="width: 20%">评分</div>
        </div>
        <div style="height: 150px; overflow: auto">
          <div
            class="tableColumn"
            :class="index % 2 == 0 ? 'tableColumn2' : 'tableColumn'"
            v-for="(item, index) in hotelList"
            :key="index"
          >
            <div class="tableTr" style="width: 60%">
              <div class="paizi">{{ index + 1 }}</div>
              {{ item.name }}
            </div>
            <div class="tableTr" style="width: 20%">{{ item.hot }}</div>
            <div class="tableTr" style="width: 20%">{{ item.score }}</div>
          </div>
        </div>
      </div>

      <div class="kljc2">
        <div class="title">特色美食</div>
        <div class="imgs-box">
          <div class="img-item" v-for="(item, index) in foodList" :key="index">
            <img :src="item.img" alt="" />

            <div class="title">{{ item.name }}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import * as echarts from "echarts";
// import "echarts/map/js/china.js";
export default {
  components: {},
  watch: {},
  created() {},
  data() {
    return {
      activeName: "1",
      hotelList: [
        {
          name: "一茶一点 (徐闻金马店)",
          hot: 96,
          score: "5.0",
        },
        {
          name: "鱼里烤鱼（徐闻天润广场店）",
          hot: 92,
          score: "4.9",
        },
        {
          name: "食得香羊粥(徐闻分店)",
          hot: 91,
          score: "4.8",
        },
        {
          name: "三煲小院(三煲两舍)",
          hot: 90,
          score: "4.7",
        },
        {
          name: "小小蛙-炭烤牛蛙",
          hot: 86,
          score: "4.6",
        },
      ],
      foodList: [
        {
          id: 1,
          name: "一茶一点 (徐闻金马店)",
          img: require("@/assets/11.jpg"),
        },
        {
          id: 2,
          name: "三煲小院(三煲两舍)",
          img: require("@/assets/22.jpg"),
        },
        {
          id: 3,
          name: "鱼里烤鱼（徐闻天润广场店）",
          img: require("@/assets/33.jpg"),
        },
        {
          id: 4,
          name: "食得香羊粥(徐闻分店)",
          img: require("@/assets/44.jpg"),
        },
        {
          id: 5,
          name: "小小蛙-炭烤牛蛙",
          img: require("@/assets/55.jpg"),
        },
      ],
    };
  },
  mounted() {},
  methods: {
    getdata2() {
      const chartDom = document.getElementById("klchart");
      const myChart = echarts.init(chartDom);
      let option;

      option = {
        grid: {
          top: "15%",
          bottom: "10%",
          containLabel: true,
        },
        xAxis: {
          type: "category",
          axisLabel: {
            color: "#fff",
          },
          data: [
            "广东省",
            "广西省",
            "山东省",
            "河北省",
            "吉林省",
            "湖北省",
            "江苏省",
          ],
        },
        yAxis: {
          type: "value",

          nameTextStyle: {
            color: "#fff",
          },
          axisLabel: {
            color: "#fff",
          },
        },
        series: [
          {
            data: [120, 200, 150, 80, 70, 110, 130],
            type: "bar",
            barWidth: 17,
            color: "#297bf7",
            itemStyle: {
              normal: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                  {
                    offset: 0,
                    color: "#4386f5", // 起点颜色
                  },
                  {
                    offset: 1,
                    color: "#2af7c8", // 终点颜色
                  },
                ]),
                shadowColor: "rgba(0, 0, 0, 0)",
              },
            },
          },
        ],
      };
      option && myChart.setOption(option);
    },
    getdata3() {
      const chartDom = document.getElementById("klchart2");
      const myChart = echarts.init(chartDom);
      let option;

      option = {
        grid: {
          top: "15%",
          bottom: "10%",
          containLabel: true,
        },
        xAxis: {
          type: "category",
          axisLabel: {
            color: "#fff",
          },
          data: [
            "广东省",
            "广西省",
            "山东省",
            "河北省",
            "吉林省",
            "湖北省",
            "江苏省",
          ],
        },
        yAxis: {
          type: "value",

          nameTextStyle: {
            color: "#fff",
          },
          axisLabel: {
            color: "#fff",
          },
        },
        series: [
          {
            data: [120, 200, 150, 80, 70, 110, 130],
            type: "bar",
            barWidth: 17,
            color: "#297bf7",
            itemStyle: {
              normal: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                  {
                    offset: 0,
                    color: "#4386f5", // 起点颜色
                  },
                  {
                    offset: 1,
                    color: "#2af7c8", // 终点颜色
                  },
                ]),
                shadowColor: "rgba(0, 0, 0, 0)",
              },
            },
          },
        ],
      };
      option && myChart.setOption(option);
    },

    getdata5() {
      const chartDom = document.getElementById("jdrzchart");
      const myChart = echarts.init(chartDom);
      let option;

      option = {
        xAxis: {
          type: "category",
          axisLabel: {
            color: "#fff",
          },
          data: ["1级", "1级", "1级", "1级", "1级", "1级", "1级"],
        },
        yAxis: {
          type: "value",
          name: "酒店等级",
          nameTextStyle: {
            color: "#fff",
          },
          axisLabel: {
            color: "#fff",
          },
        },
        series: [
          {
            data: [120, 200, 150, 80, 70, 110, 130],
            type: "bar",
            color: "#297bf7",
          },
        ],
      };
      option && myChart.setOption(option);
    },
    getdata4() {
      const chartDom = document.getElementById("jdrzlchart");
      const myChart = echarts.init(chartDom);
      let option;

      option = {
        tooltip: {
          trigger: "item",
        },
        legend: {
          show: false,
        },
        series: [
          {
            type: "pie",
            radius: ["70%", "90%"],
            avoidLabelOverlap: false,
            label: {
              show: true,
              position: "center",
              color: "#fff",
              textStyle: {
                fontSize: 12, // 字体大小
                lineHeight: 60, // 行高设置为30px
              },

              formatter: function (e) {
                return `80%`;
              },
            },

            labelLine: {
              show: false,
            },
            color: ["#616a5c", "#297bf7"],
            data: [
              { value: 1048, name: "总数" },
              { value: 735, name: "未处理" },
            ],
          },
        ],
      };
      option && myChart.setOption(option);
    },
  },
};
</script>
<style lang="scss" scoped>
#whchart {
  width: 100%;
  height: 257px;
}
#whchart0 {
  width: 100%;
  height: 257px;
}
.ljtitle {
  padding-left: 10px;
  box-sizing: border-box;
  color: #fff;
}
.whcg {
  width: 100%;
  height: 307px;
  margin-top: 17px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;

  box-sizing: border-box;
}
.whcsimg img {
  width: 100%;
  height: 100%;
}
.whcsnum {
  width: calc(100% - 74px);
  height: auto;
  padding-top: 25px;
  float: left;
  box-sizing: border-box;
}
.whcsimg {
  width: 74px;
  height: 102px;
  float: left;
}
.whcs:nth-child(2n) {
  margin-right: 0px !important;
  margin-bottom: 0px !important;
}
.whcs {
  width: 191px;
  height: 102px;
  margin-right: 5px;
  overflow: hidden;
  float: left;
  padding: 5px;
  box-sizing: border-box;
  background: #0a100c;
  margin-bottom: 10px;
}
.kljclist {
  width: 100%;
  height: auto;
  margin-top: 18px;
  overflow: hidden;
}
.jdrzchart {
  width: 100%;
  height: 237px;
  /* margin-top: 23px; */
}
#jdrzlchart {
  width: 90px;
  height: 90px;
}
.jdtotal {
  width: 137px;
  height: 81px;
  border-radius: 10px;
  line-height: 81px;
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  color: #01ffff;
  background: #1d443b;
}
.jdrzlabel {
  color: #fff;
  text-align: left;
  margin-bottom: 10px;
}
.jdrzlist {
  width: 50%;
  float: left;
  height: auto;
}
.jdrznyum {
  width: 100%;
  height: auto;
  margin-top: 18px;
  overflow: hidden;
}
.jdrzl {
  margin-top: 18px;
  width: 100%;
  height: 404px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;

  box-sizing: border-box;
}
.whcskljc {
  width: 100%;
  height: 305px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;

  box-sizing: border-box;
}
.colnum span {
  font-size: 30px;
  font-weight: bold;
  color: #297bf7;
  font-style: italic;
}
.colnum {
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.colltitle {
  text-align: center;
  color: #fff;
}
.colls {
  width: 33.3%;
  height: auto;
  float: left;
}
.collslist {
  margin-top: 32px;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.bhd span {
  color: #01ffff;
}
.bhd {
  position: absolute;
  right: 120px;
}
/* .jrjq {
  width: 71px;
  height: 25px;
  color: #fff;
  float: right;
  position: absolute;
  background: #2a63e5;
  line-height: 25px;
  right: 25px;
  border-radius: 5px;
  text-align: center;
  background: #2a63e5;
} */
.jqgk {
  width: 100%;
  height: 532px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;

  box-sizing: border-box;
}
.rightone {
  width: 421px;
  height: auto;
  margin-left: 19px;
  float: right;
}
#oldchart {
  width: 100%;
  height: 161px;
}
#oldchart1 {
  width: 100%;
  height: 141px;
}
.yknlcf {
  margin-top: 10px;
  text-align: left;
  color: #fff;
}

.ykcftj {
  color: #fff;
  text-align: left;
  margin-top: 45px;
}
.yqtitle {
  font-size: 10px;
  margin-top: -37px;
  text-align: center;
  color: #eff0ef;
}

.yqpxlb {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-around;
}
.yqxlln {
  width: 33.3%;
  height: auto;
}
.ykcf {
  width: 100%;
  height: 405px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  margin-top: 16px;
  box-sizing: border-box;
}
.kytj {
  width: 100%;
  height: 533px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}
.lefttwo {
  width: 420px;
  height: auto;
  float: left;
  margin-left: 19px;
}
.ndimg img {
  width: 100%;
  height: 100%;
}
.ndimg {
  width: 100%;
  height: 94px;
}
.ndklfx {
  margin-top: 18px;
  margin-bottom: 10px;
  color: #fff;
}
.jcmapright div img {
  vertical-align: middle;
}
.jcmapright div {
  color: #fff;
}
.jcmapright {
  width: 40%;
  float: left;
}
.jcnum {
  display: inline-block;
  color: #fff;
}
.jcnum span {
  font-size: 20px;
  color: #4af3ff !important;
  font-weight: bold;
  font-style: italic;
}
.jcmapleft {
  width: 60%;
  height: auto;
  float: left;
}
.jcmap {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-top: 7px;
}
.kljc1 {
  margin-top: 15px;
  width: 100%;
  height: 286px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}

.kljc2 {
  margin-top: 15px;
  width: 100%;
  height: 399px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;

  .imgs-box {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;

    .img-item {
      width: calc((100% - 20px) / 3);
      height: 100px;
      position: relative;
      margin-bottom: 10px;
      margin-right: 10px;

      img {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0px;
        top: 0px;
      }
      .title {
        position: absolute;
        left: 0px;
        bottom: 0px;
        width: 100%;
        height: 30px;
        line-height: 30px;
        background: rgba(0, 0, 0, 0.5);
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
      }
    }
    .img-item:nth-child(3n) {
      margin-right: 0px;
    }
  }
}

.numm1 {
  width: 50%;
  float: left;
}
.label {
  color: #fff;
  text-align: left;
}
.value span {
  font-size: 20px;
  color: #297bf7 !important;
  font-weight: bold;
  font-style: italic;
}
.value {
  color: #fff;
  text-align: left;
  margin-top: 5px;
}
.value1 span {
  font-size: 20px;
  color: #ff7d4a !important;
  font-weight: bold;
  font-style: italic;
}
.value1 {
  color: #fff;
  text-align: left;
  margin-top: 5px;
}
.numm {
  width: 100%;
  height: auto;
  margin-top: 16px;
  overflow: hidden;
}
.ryall span {
  font-size: 20px;
  color: #3abac0 !important;
  font-weight: bold;
  font-style: italic;
}
.ryall {
  margin-top: 25px;
  color: #fff;
}
.kljc {
  width: 100%;
  height: 419px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}
.leftone {
  width: 420px;
  height: auto;
  /* float: left; */
}
.main {
  position: absolute;
  left: 22px;
  top: 90px;
  width: 420px;
}
.leftBxo {
  width: 23%;
  display: flex;
}

.rightBxo {
  width: 23%;
  display: flex;
}
.title {
  font-size: 24px;
  font-family: YouSheBiaoTiHei, YouSheBiaoTiHei-Regular;
  font-weight: 600;
  text-align: left;
  font-style: italic;
  color: #ffffff;
}

.ljpm {
  width: 100%;
  height: 35px;
  border: 1px dashed #fff;
  margin-top: 5px;
  color: #fff;
  line-height: 35px;
  padding: 0px 5px;
  box-sizing: border-box;
}

.jknum {
  color: #0091fe;
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  margin: 0px 5px;
}
.kynum {
  color: #43d7b5;
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  margin: 0px 5px;
}

.jrjq {
  position: absolute;

  line-height: 14px;
  right: 14px;
}

.bhd span {
  color: #dfb704;
}
.bhd {
  position: absolute;
  right: 56px;
}

.klpx {
  width: 100%;
  height: 250px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}
.klchart {
  width: 100%;
  height: 180px;
  margin-top: 18px;
}
.klchart2 {
  width: 100%;
  height: 180px;
  margin-top: 18px;
}
</style>
<style>
.collapseZdy .el-collapse-item__header {
  background-color: rgba(1, 255, 255, 0.16);
  border-radius: 3px 3px 0px 0px;
  font-size: 14px;
  font-family: Source Han Sans SC, Source Han Sans SC-Regular;
  font-weight: 400;
  text-align: left;
  color: #ffffff;
  padding-left: 6px;
  border-bottom: 3px solid #01ffff;
  position: relative;
  margin-bottom: 10px;
}
.collapseZdy {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.collapseZdy .el-collapse-item__wrap {
  background-color: transparent !important;
  border-bottom: none !important;
  color: #fff !important;
}
.collapseZdy .el-collapse-item__content {
  color: #fff !important;
  padding-bottom: 0;
}
.moren {
  padding: 6px 8px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 0.5px solid #47b2b5;
  border-radius: 3px;
  box-shadow: 0px 1.5px 3px 0px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(15px);
  font-size: 12px;
  font-family: AlibabaPuHuiTi-Regular;
  font-weight: normal;
  text-align: center;
  color: #ffffff;
  line-height: 14px;
  margin-left: 10px;
}
.active {
  background: #47b2b5;
  border: 1px solid #47b2b5;
  border-radius: 3px;
  box-shadow: 0px 1.5px 3px 0px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(15px);
}

.jdgk {
  width: 100%;
  height: 230px;
  background: rgba(3, 8, 13, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
}

.table {
  height: 42px;
  background: rgba(67, 215, 181, 0.5);
  border-radius: 8px;
  margin: 0 auto;
  font-size: 13px;
  font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  font-weight: 400;
  color: #ffffff;
  line-height: 42px;
}
.tableTr {
  display: inline-block;
  width: 20%;
  text-align: left;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding-left: 10px;
}
.cyright {
  width: calc(100% - 208px);
  height: 80px;
  padding: 10px;
  box-sizing: border-box;
  color: #01dfde;
  background: #0e2013;
  float: left;
}

.pfnum {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 0px;
  color: #ffcc00;
}
.paizi {
  width: 22px;
  height: 22px;
  background: #ff9d4d;
  border-radius: 5px;
  color: #fff;
  display: inline-block;
  text-align: center;
  line-height: 22px;
}
.tableColumn {
  margin: 0 auto;
  height: 42px;
  /* border-radius: 8px; */
  font-size: 13px;
  font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  font-weight: 400;
  color: #ffffff;
  border-bottom: 1px solid #0e785c;

  line-height: 42px;
}
.tableColumn2 {
  margin: 0 auto;
  height: 42px;
  /* background: rgba(67, 215, 181, 0.1); */
  border-bottom: 1px solid #0e785c;
  text-align: center;
  /* border-radius: 8px; */
  font-size: 13px;
  font-family: Microsoft YaHei, Microsoft YaHei-Regular;
  font-weight: 400;
  color: #ffffff;
  line-height: 42px;
}
</style>

<style>
.collapseZdy .el-collapse-item__header {
  background-color: rgba(1, 255, 255, 0.16);
  border-radius: 3px 3px 0px 0px;
  font-size: 14px;
  font-family: Source Han Sans SC, Source Han Sans SC-Regular;
  font-weight: 400;
  text-align: left;
  color: #ffffff;
  padding-left: 6px;
  border-bottom: 3px solid #01ffff;
  position: relative;
  margin-bottom: 10px;
  height: 40px;
}
.collapseZdy {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.collapseZdy .el-collapse-item__wrap {
  background-color: transparent !important;
  border-bottom: none !important;
  color: #fff !important;
}
.collapseZdy .el-collapse-item__content {
  color: #fff !important;
  padding-bottom: 0;
  height: 100%;
}

.el-collapse-item__arrow {
  position: absolute;
  color: #297bf7;
  /* margin-left: -64px !important; */
}
</style>
